<?php defined("SYSPATH") or die("No direct script access.")?>
<div class="box" style="text-align: left; height: auto;">
<? if (isset($basket->contents ) && count($basket->contents) > 0){ ?>
<? foreach ($basket->contents as $key => $basket_items){ ?>
<?php $product=$basket_items->getProduct();?>
	<div id="basketThumb">
		<a href="<?php echo url::base(FALSE).''.$product->thumbnail?>" class="preview-image"> 
		<img src="<?php echo url::base(FALSE).''.$product->thumbnail?>"
		title="<?= $product->description?>" alt="" /> 
		</a> 
		รายละเอียด <?= $product->description ?><br />
		จำนวน <?= $basket_items->quantity ?><br />
		<a href="<?= url::site("basket/remove_item/$key") ?>"
		class="g-button ui-state-default ui-corner-all ui-icon-left"> <span
		class="ui-icon ui-icon-trash"></span>Remove</a>
	</div>
	<hr>
<?php }
}?>
</div>
